<html>
<head><meta charset="utf-8"><title>Getting rust-analyzer &amp; vscode working with rapier · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Getting.20rust-analyzer.20.26.20vscode.20working.20with.20rapier.html">Getting rust-analyzer &amp; vscode working with rapier</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="243230691"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Getting%20rust-analyzer%20%26%20vscode%20working%20with%20rapier/near/243230691" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> rezuralos rezurally <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Getting.20rust-analyzer.20.26.20vscode.20working.20with.20rapier.html#243230691">(Jun 19 2021 at 05:29)</a>:</h4>
<p>Hey all.</p>
<p>I just noticed emilk posted an  issue about rapier &amp; vscode &amp; rust-analyzer. I'm interested in getting this working, or at least debugging it some.</p>
<p><a href="https://github.com/rust-analyzer/rust-analyzer/issues/7715">https://github.com/rust-analyzer/rust-analyzer/issues/7715</a></p>
<p>I am having trouble working out where to look to find the code paths that are triggered (or more likely not)</p>



<a name="243233221"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Getting%20rust-analyzer%20%26%20vscode%20working%20with%20rapier/near/243233221" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Getting.20rust-analyzer.20.26.20vscode.20working.20with.20rapier.html#243233221">(Jun 19 2021 at 06:47)</a>:</h4>
<p>I would recommend trying to create a more minimal version of the same project structure to hopefully reproduce it</p>



<a name="243268242"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Getting%20rust-analyzer%20%26%20vscode%20working%20with%20rapier/near/243268242" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> rezuralos rezurally <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Getting.20rust-analyzer.20.26.20vscode.20working.20with.20rapier.html#243268242">(Jun 19 2021 at 20:44)</a>:</h4>
<p>So the point at where rust-analyzer registers a dependency is where I believe this problem lies. I will get a minimal reproduction happening, hopefully someone can point out where the code is that currently assumes (in this case) that the file to open is src/lib.rs, when it is actually ../../src/lib.rs, as indicated by the cargo.toml</p>



<a name="243269980"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Getting%20rust-analyzer%20%26%20vscode%20working%20with%20rapier/near/243269980" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Getting.20rust-analyzer.20.26.20vscode.20working.20with.20rapier.html#243269980">(Jun 19 2021 at 21:29)</a>:</h4>
<p>we should be getting this info from cargo</p>



<a name="243274996"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Getting%20rust-analyzer%20%26%20vscode%20working%20with%20rapier/near/243274996" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> rezuralos rezurally <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Getting.20rust-analyzer.20.26.20vscode.20working.20with.20rapier.html#243274996">(Jun 19 2021 at 23:40)</a>:</h4>
<p>It appears to be registered correctly (path is correct).</p>



<a name="243289410"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Getting%20rust-analyzer%20%26%20vscode%20working%20with%20rapier/near/243289410" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> rezuralos rezurally <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Getting.20rust-analyzer.20.26.20vscode.20working.20with.20rapier.html#243289410">(Jun 20 2021 at 06:33)</a>:</h4>
<p>SO, I'm still working on it, but It's in the server setup code that I think the problem is.... so some people will already know how terrifying, soul destroying and plain frustrating it is. I'll at least get some better debug outputs (with file names) from a run, debugging hasnt really helped as everything is indexed by id &amp; hidden in inscrutable hashtables etc..</p>



<a name="243289457"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Getting%20rust-analyzer%20%26%20vscode%20working%20with%20rapier/near/243289457" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> rezuralos rezurally <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Getting.20rust-analyzer.20.26.20vscode.20working.20with.20rapier.html#243289457">(Jun 20 2021 at 06:34)</a>:</h4>
<p>Probably also found some bugs that affect debugging the server on start (doing the RA_WAIT_DBG thing causes issues with version checking hanging indefinately &amp; probably timing out..)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>